package com.its.cloud.service;

import com.its.cloud.entity.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author huguangjun
 * @className PaymentService
 * @date 2021/1/11
 * @desc 17:44
 */
@Component
//@FeignClient(value = "its-provider",fallback = PaymentFeignServiceImpl.class)
@FeignClient(value = "${server-url.nacos-user-service}",fallback = PaymentFeignServiceImpl.class)
//@FeignClient(value = "${server-url.nacos-user-service}")
public interface PaymentFeignService {

    @GetMapping(value = "/payment/get/{id}")
    ResultBean get(@PathVariable("id") Long id);
}
